﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test2.aspx.cs" Inherits="SES.CMS.Test2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
        <script type="text/javascript" src="/js/jquery.js"></script>
        <script type="text/javascript" src="/js/jcarousellite.js"></script>
        <style type="text/css">
            .prev
            {
            	width:50px;
            	margin-top:90px;
            	height:50px;
            	float:left;
            }
            .anyClass
            {
            	text-align:center;
            	text-decoration:none;
            	font-weight:bold;
            	height:500px;
            	float:left;
            }
            .anyClass a
            {
            	text-decoration:none;
            }
            .next
            {
            	width:50px;
            	margin-top:70px;
            	height:50px;
            	float:left;
            }
        </style>
</head>
<body>
    <script type="text/javascript">
        $(function() {
            $(".anyClass").jCarouselLite({
                auto: 800,
                speed: 1000,
                btnNext: ".bounceout .next",
                btnPrev: ".bounceout .prev",
                easing: "bounceout",
                visible: 4
            });
            $(".anyClass img").click(function() {
            $(".widget .mid img").attr("src", $(this).attr("src"));
            })
        });
    </script>
    <form id="form1" runat="server">
    <div class="carousel auto">
        
        <button class="prev"><img src="images/left-hover.gif" width="25px" height="25px"/></button>
        
        <div class="anyClass">Sản phẩm bán chạy
            <ul>
                <asp:Repeater ID="rpt" runat="server" onitemcommand="rpt_ItemCommand">
                    <ItemTemplate>
                        <li>    
                            <a href="<%#"/SanPhamChiTiet/"+Eval("SanPhamID")+"/"+FriendlyUrl(Eval("TenSanPham").ToString())%>">
                                <%#Eval("TenSanPham")%></a><br />
                            <a href="<%#"/SanPhamChiTiet/"+Eval("SanPhamID")+"/"+FriendlyUrl(Eval("TenSanPham").ToString())%>">
                                <img src="/Media/<%#Eval("HinhAnh")%>" width="100px" height="100px" /></a><br />
                            <div style="float:left; color: #c20b47; font-size: 12px; text-transform: uppercase">
                                Giá:
                                <%#Eval("DonGia","{0:0,0}")%>
                                VNĐ
                            </div>
                        </li>
                     </ItemTemplate>
                 </asp:Repeater>
            </ul>
        </div>
<%--        <div class="anyClass">
            <ul>
                <li><img src="Media/HongHa.jpg" alt="" width="100" height="100" /></li>
                <li><img src="Media/ImageKM.jpg" alt="" width="100" height="100" /></li>
                <li><img src="Media/ThienLong.jpg" alt="" width="100" height="100" /></li>
                <li><img src="Media/image2.jpg" alt="" width="100" height="100" /></li>
            </ul>
        </div>--%>
        <button class="next"><img src="images/right-hover.gif"  width="25px" height="25px"/></button>
        
        <%--<div class="carousel main">
            <a href="#" class="prev">&nbsp</a>
            <div class="jCarouselLite">
                <ul>
                    <li><img src="Media/HongHa.jpg" alt="" width="100" height="100" /></li>
                    <li><img src="Media/ImageKM.jpg" alt="" width="100" height="100" /></li>
                    <li><img src="Media/ThienLong.jpg" alt="" width="100" height="100" /></li>
                    <li><img src="Media/image2.jpg" alt="" width="100" height="100" /></li>
                </ul>
            </div>
            <a href="#" class="next">&nbsp</a>
            <div class="clear"></div>   --%>
        </div>
    </div>
    </form>
</body>
</html>
